{% extends "base.html" %}

{% block head %}
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>{{ site.title }}</title>
    <link rel="stylesheet" href="/static/css/bootstrap.css"/>
    <link rel="stylesheet" href="/static/css/bootstrap-theme.css"/>
    <link rel="stylesheet" href="/static/css/bootstrap-select.min.css"/>
    <script src="/static/js/jquery-3.3.1.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/js/bootstrap-select.min.js"></script>
    <script src="/static/js/pageNav.js"></script>
{% endblock %}

{% block nav_bar %}
    <nav class="navbar navbar-default">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">课程管理系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li{% if site.current_page is equalto('index') %} class="active"{% endif %}><a href="/admin/index">管理首页</a></li>
            <li{% if site.current_page is equalto('course') %} class="active"{% endif %}><a href="/admin/course">课程管理</a></li>
            <li{% if site.current_page is equalto('user') %} class="active"{% endif %}><a href="/admin/user">用户管理</a></li>
            <li{% if site.current_page is equalto('elective') %} class="active"{% endif %}><a href="/admin/elective">选课管理</a></li>
            <li{% if site.current_page is equalto('comment') %} class="active"{% endif %}><a href="/admin/comment">留言审核</a></li>
            <li{% if site.current_page is equalto('score') %} class="active"{% endif %}><a href="/admin/score">成绩管理</a></li>
            <li><a href="/logout">退出</a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
{% endblock %}
